package com.frogs.ucenter.service.daoimpl;

import com.frogs.framework.base.dao.BaseDao;
import com.frogs.framework.base.service.daoimpl.BaseServiceImpl;
import com.frogs.ucenter.dao.UserBaseInfoDao;
import com.frogs.ucenter.entity.UserBaseInfo;
import com.frogs.ucenter.service.UserBaseInfoService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Transactional(propagation=Propagation.REQUIRED, rollbackFor=Exception.class) 
@Service("userBaseInfoService")
public class UserBaseInfoServiceImpl extends BaseServiceImpl<UserBaseInfo> implements UserBaseInfoService {
    @Autowired
    private UserBaseInfoDao userBaseInfoDao;

    public UserBaseInfoServiceImpl() {
        super();
    }

    public UserBaseInfoDao getUserBaseInfoDao() {
        return userBaseInfoDao;
    }

    /**
     * Don't remove or edit it.
     */
    @Override
    protected BaseDao<UserBaseInfo> getBaseDao() {
        return userBaseInfoDao;
    }

    public void setUserBaseInfoDao(UserBaseInfoDao userBaseInfoDao) {
        this.userBaseInfoDao = userBaseInfoDao;
    }
}